package com.csweimei.rentmanagementtreasure.http.entity;

import android.view.View;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class TabThreeBean extends BaseResult{
    @SerializedName("data")
    private List<DataDTO> data;

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO implements Serializable {
        @SerializedName("messageType")
        private String messageType;
        @SerializedName("messageText")
        private String messageText;
        @SerializedName("number")
        private int number;

        public String getMessageType() {
            return messageType;
        }

        public int show1(){
            if (messageType.equals("系统消息")){
                return View.VISIBLE;
            }else {
                return View.GONE;
            }
        }

        public int show2(){
            if (messageType.equals("留言消息")){
                return View.VISIBLE;
            }else {
                return View.GONE;
            }
        }

        public int show3(){
            if (messageType.equals("客户消息")){
                return View.VISIBLE;
            }else {
                return View.GONE;
            }
        }

        public int show4(){
            if (messageType.equals("平台消息")){
                return View.VISIBLE;
            }else {
                return View.GONE;
            }
        }

        public int show5(){
            if (messageType.equals("财务消息")){
                return View.VISIBLE;
            }else {
                return View.GONE;
            }
        }

        public void setMessageType(String messageType) {
            this.messageType = messageType;
        }

        public String getMessageText() {
            return messageType+"提醒";
        }

        public void setMessageText(String messageText) {
            this.messageText = messageText;
        }

        public String getNumber() {
            return number+"";
        }

        public void setNumber(int number) {
            this.number = number;
        }
    }
}
